import request from '@/utils/request'

export function getColumnList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/column/getList',
    method: 'post',
    data: query
  })
}


export function getColumnUsableList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/column/getUsableList',
    method: 'post',
    data: query
  })
}   

export function saveColumn(query) {
  return request({
    url: '/examine/admin/column/save',
    method: 'post',
    data: query
  })
}

export function removeColumn(query) {
  return request({
    url: '/examine/admin/column/remove',
    method: 'post',
    data: query
  })
}
export function getColumnDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/column/getDetail',
    method: 'post',
    data: query
  })
}